<div class="panel panel-default">

	<div class="panel-heading">电商商品设置</div>
	<div class='panel-body' >
		<div class="form-group" id="goods_replay_type" {if $item['poster_type'] == 3}{else}style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">公众号回复类型：</label>
			<div class="col-sm-9 col-xs-12">
				<label class="radio-inline"><input type="radio" name="goods_replay_type" value="1" {if $item['goods_replay_type'] == 1}checked="true"{/if} /> 小程序商品卡片</label>
				&nbsp;&nbsp;&nbsp;
				<label class="radio-inline"><input type="radio" name="goods_replay_type" value="2" {if $item['goods_replay_type'] == 2}checked="true"{/if} /> 商品H5链接</label>
			</div>
		</div>
		<div class="form-group" id="mall_type">
			<label class="col-xs-12 col-sm-2 control-label">电商平台：</label>
			<div class="col-sm-9 col-xs-12">
				<label class="radio-inline"><input type="radio" name="mall_type" value="jd" {if $item['mall_type'] == jd}checked="true"{/if} /> 京东</label>
				&nbsp;&nbsp;&nbsp;
				<label class="radio-inline"><input type="radio" name="mall_type" value="pdd" {if $item['mall_type'] == pdd}checked="true"{/if} /> 拼多多</label>
				&nbsp;&nbsp;&nbsp;
				<label class="radio-inline"><input type="radio" name="mall_type" value="wph" {if $item['mall_type'] == wph}checked="true"{/if} /> 唯品会</label>
				&nbsp;&nbsp;&nbsp;
				<label class="radio-inline"><input type="radio" name="mall_type" value="tb" {if $item['mall_type'] == tb}checked="true"{/if} /> 淘宝</label>
				<span class="help-block" style="color:red;">*此项用于区分不同电商平台商品</span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-2 control-label">商品id：</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" name="goods_id" class="form-control" value="{$item['goods_id']}" />
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-2 control-label">商品标题：</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" name="goods_title" class="form-control" value="{$item['goods_title']}" />
				<span class="help-block" id="goods_title" {if $item['mall_type'] == 'tb'} style="color:red;"{else} style="display:none;"{/if}>*[tkl]表示淘口令，如果是淘宝天猫商品将会被自动替换为淘口令；</span>
			</div>
		</div>
		<div class="form-group" id="goods_desc" {if $item['goods_replay_type'] == 2}{else} style="display:none;"{/if}>
			<label class="col-xs-12 col-sm-2 control-label">商品描述：</label>
			<div class="col-sm-9 col-xs-12">
				<input type="text" name="goods_desc" class="form-control" value="{$item['goods_desc']}" />
				<span class="help-block">*用于H5链接描述</span>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-2 control-label">商品图片（可多图）：</label>
			<div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_multi_image('goods_photos',json_decode($item['goods_photos'],true))}
				<span class="help-block" style="color:red;">*最多9张，将会使用第一张图片作为海报底图</span>
			</div>
		</div>
	</div>
</div>